import Vue from 'vue'
import Router from 'vue-router'


Vue.use(Router);
import home from '../components/home.vue'
import huiyuan from '../components/huiyuan.vue'
import shopcart from '../components/shopcart.vue'
import search from '../components/search.vue'
import newslist from '../components/news/newslist.vue'
import newsinfo from '../components/news/newsinfo.vue'
import photolist from '../components/photo/photolist.vue'
import photoinfo from '../components/photo/photoinfo.vue'
import goodslist from '../components/goods/goodslist.vue'
import goodsdesc from '../components/goods/goodsdesc.vue'
import goodsinfo from '../components/goods/goodsinfo.vue'
import goodscomment from '../components/goods/goodscomment.vue'
export default new Router({

  linkActiveClass:'mui-active',
  routes: [
    {path:'/',redirect:'/home'},
    {path: '/home', component: home},
    {path: '/huiyuan', component: huiyuan},
    {path: '/shopcart', component: shopcart},
    {path: '/search', component: search},
    {path: '/news/newslist', component: newslist},
    {path: '/news/newsinfo/:id', component: newsinfo},
    {path: '/photo/photolist', component: photolist},
    {path: '/photo/photoinfo/:id', component: photoinfo},
    {path: '/goods/goodslist/', component: goodslist},
    {path: '/goods/goodsinfo/:id', component: goodsinfo},
    {path: '/goods/goodsdesc/:id', component: goodsdesc},
    {path: '/goods/goodscomment/:id', component: goodscomment},

  ],

})
